package com.tosit.bmx.domian;

import java.util.ArrayList;
import java.util.List;

public class MuserExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MuserExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andMuserIsNull() {
            addCriterion("muser is null");
            return (Criteria) this;
        }

        public Criteria andMuserIsNotNull() {
            addCriterion("muser is not null");
            return (Criteria) this;
        }

        public Criteria andMuserEqualTo(String value) {
            addCriterion("muser =", value, "muser");
            return (Criteria) this;
        }

        public Criteria andMuserNotEqualTo(String value) {
            addCriterion("muser <>", value, "muser");
            return (Criteria) this;
        }

        public Criteria andMuserGreaterThan(String value) {
            addCriterion("muser >", value, "muser");
            return (Criteria) this;
        }

        public Criteria andMuserGreaterThanOrEqualTo(String value) {
            addCriterion("muser >=", value, "muser");
            return (Criteria) this;
        }

        public Criteria andMuserLessThan(String value) {
            addCriterion("muser <", value, "muser");
            return (Criteria) this;
        }

        public Criteria andMuserLessThanOrEqualTo(String value) {
            addCriterion("muser <=", value, "muser");
            return (Criteria) this;
        }

        public Criteria andMuserLike(String value) {
            addCriterion("muser like", value, "muser");
            return (Criteria) this;
        }

        public Criteria andMuserNotLike(String value) {
            addCriterion("muser not like", value, "muser");
            return (Criteria) this;
        }

        public Criteria andMuserIn(List<String> values) {
            addCriterion("muser in", values, "muser");
            return (Criteria) this;
        }

        public Criteria andMuserNotIn(List<String> values) {
            addCriterion("muser not in", values, "muser");
            return (Criteria) this;
        }

        public Criteria andMuserBetween(String value1, String value2) {
            addCriterion("muser between", value1, value2, "muser");
            return (Criteria) this;
        }

        public Criteria andMuserNotBetween(String value1, String value2) {
            addCriterion("muser not between", value1, value2, "muser");
            return (Criteria) this;
        }

        public Criteria andMpassIsNull() {
            addCriterion("mpass is null");
            return (Criteria) this;
        }

        public Criteria andMpassIsNotNull() {
            addCriterion("mpass is not null");
            return (Criteria) this;
        }

        public Criteria andMpassEqualTo(String value) {
            addCriterion("mpass =", value, "mpass");
            return (Criteria) this;
        }

        public Criteria andMpassNotEqualTo(String value) {
            addCriterion("mpass <>", value, "mpass");
            return (Criteria) this;
        }

        public Criteria andMpassGreaterThan(String value) {
            addCriterion("mpass >", value, "mpass");
            return (Criteria) this;
        }

        public Criteria andMpassGreaterThanOrEqualTo(String value) {
            addCriterion("mpass >=", value, "mpass");
            return (Criteria) this;
        }

        public Criteria andMpassLessThan(String value) {
            addCriterion("mpass <", value, "mpass");
            return (Criteria) this;
        }

        public Criteria andMpassLessThanOrEqualTo(String value) {
            addCriterion("mpass <=", value, "mpass");
            return (Criteria) this;
        }

        public Criteria andMpassLike(String value) {
            addCriterion("mpass like", value, "mpass");
            return (Criteria) this;
        }

        public Criteria andMpassNotLike(String value) {
            addCriterion("mpass not like", value, "mpass");
            return (Criteria) this;
        }

        public Criteria andMpassIn(List<String> values) {
            addCriterion("mpass in", values, "mpass");
            return (Criteria) this;
        }

        public Criteria andMpassNotIn(List<String> values) {
            addCriterion("mpass not in", values, "mpass");
            return (Criteria) this;
        }

        public Criteria andMpassBetween(String value1, String value2) {
            addCriterion("mpass between", value1, value2, "mpass");
            return (Criteria) this;
        }

        public Criteria andMpassNotBetween(String value1, String value2) {
            addCriterion("mpass not between", value1, value2, "mpass");
            return (Criteria) this;
        }

        public Criteria andMtelIsNull() {
            addCriterion("mtel is null");
            return (Criteria) this;
        }

        public Criteria andMtelIsNotNull() {
            addCriterion("mtel is not null");
            return (Criteria) this;
        }

        public Criteria andMtelEqualTo(String value) {
            addCriterion("mtel =", value, "mtel");
            return (Criteria) this;
        }

        public Criteria andMtelNotEqualTo(String value) {
            addCriterion("mtel <>", value, "mtel");
            return (Criteria) this;
        }

        public Criteria andMtelGreaterThan(String value) {
            addCriterion("mtel >", value, "mtel");
            return (Criteria) this;
        }

        public Criteria andMtelGreaterThanOrEqualTo(String value) {
            addCriterion("mtel >=", value, "mtel");
            return (Criteria) this;
        }

        public Criteria andMtelLessThan(String value) {
            addCriterion("mtel <", value, "mtel");
            return (Criteria) this;
        }

        public Criteria andMtelLessThanOrEqualTo(String value) {
            addCriterion("mtel <=", value, "mtel");
            return (Criteria) this;
        }

        public Criteria andMtelLike(String value) {
            addCriterion("mtel like", value, "mtel");
            return (Criteria) this;
        }

        public Criteria andMtelNotLike(String value) {
            addCriterion("mtel not like", value, "mtel");
            return (Criteria) this;
        }

        public Criteria andMtelIn(List<String> values) {
            addCriterion("mtel in", values, "mtel");
            return (Criteria) this;
        }

        public Criteria andMtelNotIn(List<String> values) {
            addCriterion("mtel not in", values, "mtel");
            return (Criteria) this;
        }

        public Criteria andMtelBetween(String value1, String value2) {
            addCriterion("mtel between", value1, value2, "mtel");
            return (Criteria) this;
        }

        public Criteria andMtelNotBetween(String value1, String value2) {
            addCriterion("mtel not between", value1, value2, "mtel");
            return (Criteria) this;
        }

        public Criteria andMcreatetimeIsNull() {
            addCriterion("mcreatetime is null");
            return (Criteria) this;
        }

        public Criteria andMcreatetimeIsNotNull() {
            addCriterion("mcreatetime is not null");
            return (Criteria) this;
        }

        public Criteria andMcreatetimeEqualTo(String value) {
            addCriterion("mcreatetime =", value, "mcreatetime");
            return (Criteria) this;
        }

        public Criteria andMcreatetimeNotEqualTo(String value) {
            addCriterion("mcreatetime <>", value, "mcreatetime");
            return (Criteria) this;
        }

        public Criteria andMcreatetimeGreaterThan(String value) {
            addCriterion("mcreatetime >", value, "mcreatetime");
            return (Criteria) this;
        }

        public Criteria andMcreatetimeGreaterThanOrEqualTo(String value) {
            addCriterion("mcreatetime >=", value, "mcreatetime");
            return (Criteria) this;
        }

        public Criteria andMcreatetimeLessThan(String value) {
            addCriterion("mcreatetime <", value, "mcreatetime");
            return (Criteria) this;
        }

        public Criteria andMcreatetimeLessThanOrEqualTo(String value) {
            addCriterion("mcreatetime <=", value, "mcreatetime");
            return (Criteria) this;
        }

        public Criteria andMcreatetimeLike(String value) {
            addCriterion("mcreatetime like", value, "mcreatetime");
            return (Criteria) this;
        }

        public Criteria andMcreatetimeNotLike(String value) {
            addCriterion("mcreatetime not like", value, "mcreatetime");
            return (Criteria) this;
        }

        public Criteria andMcreatetimeIn(List<String> values) {
            addCriterion("mcreatetime in", values, "mcreatetime");
            return (Criteria) this;
        }

        public Criteria andMcreatetimeNotIn(List<String> values) {
            addCriterion("mcreatetime not in", values, "mcreatetime");
            return (Criteria) this;
        }

        public Criteria andMcreatetimeBetween(String value1, String value2) {
            addCriterion("mcreatetime between", value1, value2, "mcreatetime");
            return (Criteria) this;
        }

        public Criteria andMcreatetimeNotBetween(String value1, String value2) {
            addCriterion("mcreatetime not between", value1, value2, "mcreatetime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}